# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Russ Webber <russ@rw.id.au>
pkgname=rosdep
pkgver=0.19.0
pkgrel=2
pkgdesc="ROS multi-package manager system dependency tool"
url="http://ros.org/wiki/rosdep"
arch="noarch"
license="BSD-3-Clause"
options="!check"  # tests are not very robust https://github.com/ros-infrastructure/rosdep/issues/765
depends="python3 py3-yaml py3-catkin-pkg py3-rosdistro py3-rospkg"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-mock py3-flake8"
source="$pkgname-$pkgver.tar.gz::https://github.com/ros-infrastructure/rosdep/archive/$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	nosetests --cover-package=rospkg --with-xunit test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3e1d5829689646d583da2eaaf3b8bbddec3cb4ca3dc3941ee2697f6367510a4dcff11984fa1792a400f49132778d7869f0a8274e42bc8c04f2e326e6a663c494  rosdep-0.19.0.tar.gz"
